<?php

/**
 * 栏目列表
 */
Route::get('entity/column/collists', ['as'=> 'entity.column.collists.index', 'uses' => 'Entity\Column\CollistController@index']);
Route::post('entity/column/collists', ['as'=> 'entity.column.collists.store', 'uses' => 'Entity\Column\CollistController@store']);
Route::get('entity/column/collists/create', ['as'=> 'entity.column.collists.create', 'uses' => 'Entity\Column\CollistController@create']);
Route::put('entity/column/collists/{collists}', ['as'=> 'entity.column.collists.update', 'uses' => 'Entity\Column\CollistController@update']);
Route::patch('entity/column/collists/{collists}', ['as'=> 'entity.column.collists.update', 'uses' => 'Entity\Column\CollistController@update']);
Route::delete('entity/column/collists/{collists}', ['as'=> 'entity.column.collists.destroy', 'uses' => 'Entity\Column\CollistController@destroy']);
Route::get('entity/column/collists/{collists}', ['as'=> 'entity.column.collists.show', 'uses' => 'Entity\Column\CollistController@show']);
Route::get('entity/column/collists/{collists}/edit', ['as'=> 'entity.column.collists.edit', 'uses' => 'Entity\Column\CollistController@edit']);

/**
 * 栏目列表上线, 下线, 发布
 */
// 栏目列表全部上线
Route::get('entity/column/collists/all_up/view', [
    'as'=> 'entity.column.collists.all_up', 
    'uses' => 'Entity\Column\CollistController@allUp'
]);
// 栏目列表全部下线
Route::get('entity/column/collists/all_down/view', [
    'as'=> 'entity.column.collists.all_down', 
    'uses' => 'Entity\Column\CollistController@allDown'
]);
// 栏目列表上线发布
Route::get('entity/column/collists/publish/view', [
    'as'=> 'entity.column.collists.publish', 
    'uses' => 'Entity\Column\CollistController@publish'
]);
// 栏目列表下线发布
Route::get('entity/column/collists/publish_down/view', [
    'as'=> 'entity.column.collists.publish_down', 
    'uses' => 'Entity\Column\CollistController@publishDown'
]);
// 栏目列表单个、批量上线发布
Route::post('entity/column/collists/publish_one_or_more/view', [
    'as'=> 'entity.column.collists.publish_one_or_more', 
    'uses' => 'Entity\Column\CollistController@batchModerate'
]);
// 栏目列表单个、批量下线发布
Route::post('entity/column/collists/publish_down_one_or_more/view', [
    'as'=> 'entity.column.collists.publish_down_one_or_more',
    'uses' => 'Entity\Column\CollistController@batchModerate'
]);
// 单个,批量上线
Route::post('entity/column/collists/up/view', [
    'as'=> 'entity.column.collists.up', 
    'uses' => 'Entity\Column\CollistController@batchModerate'
]);
// 单个,批量下线
Route::post('entity/column/collists/down/view', [
    'as'=> 'entity.column.collists.down', 
    'uses' => 'Entity\Column\CollistController@batchModerate'
]);
// 查询进度
Route::get('entity/column/collists/progress/view', [
    'as'=> 'entity.column.collists.progress', 
    'uses' => 'Entity\Column\CollistController@queryProgress'
]);

// 根据range获取不同的模板
Route::get('entity/column/collists/range/tpl/view', [
    'as'=> 'entity.column.collists.tpls', 
    'uses' => 'Entity\Column\CollistController@getTplByRange'
]);

// ajax请求获取模板
Route::get('entity/column/collists/range/{range}/resources', [
    'as'=> 'entity.column.collists.tpls.resources', 
    'uses' => 'Entity\Column\CollistController@getReasourceData'
]);

